﻿using System;
using System.Collections.Generic;
using SysApp = System.Windows.Forms.Application;

using RexToy.Configuration;
using RexToy.IoC;
using RexToy.UI.WinForm.Controls;

using Studio.ViewModel;

namespace Studio.UI
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            AppConfig.Load(ConfigFactory.CreateXmlConfig());

            SysApp.EnableVisualStyles();
            SysApp.SetCompatibleTextRenderingDefault(false);

            var f = AppVM.ViewProvider.Lookup<Form>(Constants.Form_Main);
            SysApp.Run(f);
        }
    }
}
